package com.liveneo.adapter.mobile.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.liveneo.adapter.base.entity.PrpmCaseInfoCyp;
import com.liveneo.adapter.base.mapper.PrpmCaseInfoCypMapper;
import com.liveneo.adapter.mobile.model.request.GetPolicyItem31Request;
import com.liveneo.adapter.mobile.service.PrpmCaseInfoCypService;

/**
 * @Desc：
 * @Title：PrpmCaseInfoCypServiceImpl
 * @address: http://www.liveneo.com.cn/
 * @author: Liuzhipeng
 * @version: 1.0 
 * @date: 2016年11月16日 下午4:10:23
 */
@Service
public class PrpmCaseInfoCypServiceImpl implements PrpmCaseInfoCypService {
    @Autowired
    private PrpmCaseInfoCypMapper prpmcaseInfoCypMapper;
    
    @Override
    public PrpmCaseInfoCyp selectCaseInfoByRequest(GetPolicyItem31Request request) {
        
        return prpmcaseInfoCypMapper.selectByRequest(request);
    }

	/**
	  * @Title: save
	  * @Description: 新增
	  * @param @param caseInfoCyp
	  * @param @return 设定文件
	  * @return 返回类型
	  * @throws
	  */
	@Override
	public int save(PrpmCaseInfoCyp caseInfoCyp) {
		return prpmcaseInfoCypMapper.insert(caseInfoCyp);
	}

	/**
	  * @Title: update
	  * @Description: 更新人伤信息
	  * @param @param caseInfoCyp
	  * @param @return 设定文件
	  * @return 返回类型
	  * @throws
	  */
	@Override
	public int update(PrpmCaseInfoCyp caseInfoCyp) {
		return prpmcaseInfoCypMapper.updateByPrimaryKeySelective(caseInfoCyp);
	}

	/**
	  * @Title: selectCaseInfoCypByCaseNo
	  * @Description: 查询人伤信息
	  * @param @param caseNo
	  * @param @return 设定文件
	  * @return 返回类型
	  * @throws
	  */
	@Override
	public PrpmCaseInfoCyp selectCaseInfoCypByCaseNo(String caseNo) {
		return prpmcaseInfoCypMapper.selectCaseInfoCypByCaseNo(caseNo);
	}
}
